package xiegd.study.bloom;

import cn.hutool.bloomfilter.BitMapBloomFilter;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/4/23 15:14
 */
public class HuToolBloom {
    public static void main(String[] args) {
        // 初始化
        BitMapBloomFilter filter = new BitMapBloomFilter(10);
        filter.add("123");
        filter.add("abc");
        filter.add("ddd");

// 查找
        boolean abc = filter.contains("abc");
        System.out.println("是否存在啊：" + abc);
    }
}
